package com.qianba.consumer.action;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.qianba.api.IUinfoService;
import com.qianba.entity.Uinfo;

@Controller
@RequestMapping(value = "/uinfo")
public class UinfoController {
	@Resource
	private IUinfoService uinfoService;

	@RequestMapping(value = "/list")
	public String list(Map<String, Object> map) {
		List<Uinfo> li = uinfoService.sel();
		for (Uinfo uinfo : li) {
			System.out.println(uinfo.getId());
			System.out.println(uinfo.getUname());
		}
		System.out.println("Javaceshi --------------------------------");
		map.put("list", li);
		return "/uinfo/list";
	}

}
